{% extends "base.html" %}
{% block mycontent %}
    <div class="container">
        <h4>登录</h4>
        <hr>
    </div>
    <div class="container">
        {% if errmsg %}
            <div class="alert alert-danger" role="alert">{{ errmsg }}</div>
        {% endif %}
    </div>
    <div class="container">
        {% if aim_url %}
            <form action="/login?aim_url={{ aim_url }}" method="post">
        {% else %}
            <form action="/login" method="post">
        {% endif %}
            <div class="form-group">
                <label for="name">用户名：</label>
                <input type="text" class="form-control" name="username" placeholder="用户名">
            </div>
            <div class="form-group">
                <label for="phone">密码：</label>
                <input type="password" class="form-control" name="password" placeholder="密码">
            </div>
            <button type="submit" class="btn btn-success" style="width:100%">登录</button>
        </form>
        <a href="/add_user">添加用户？点击这里</a>
    </div>

{% endblock %}